Page({
  data: {
    list:[],
    cartlist:[],
    cenlist:[]
  },
  onLoad(){
    wx.request({
      url: `https://api-hmugo-web.itheima.net/api/public/v1/home/swiperdata`,
      method:"GET",
      success:res=>{
        this.setData({
          list:res.data.message
        })
      }
    }),
    wx.request({
      url: `https://api-hmugo-web.itheima.net/api/public/v1/home/catitems`,
      method:"GET",
      success:res=>{
        // console.log(res);
        this.setData({
          cartlist:res.data.message
        })
      }
    }),
    wx.request({
      url: `https://api-hmugo-web.itheima.net/api/public/v1/home/floordata`,
      method:"GET",
      success:res=>{
        this.setData({
          cenlist:res.data.message
        })
      }
    })
  },
})
